package com.ruoyi.project.scheduled;

import com.ruoyi.project.beautyflower.repaymentPlan.mapper.RepaymentPlanMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@SuppressWarnings("ALL")
public class ScheduledOrder {
    @Autowired
    private RepaymentPlanMapper planMapper;

    /**
     * 每天凌晨0点执行一次
     */
    @Scheduled(cron = "0 0 0 * * ?")
    public void scheduled() {
        int num = planMapper.scheduled();
        System.out.println("=====>>>>>scheduled update num " + num);
    }

}
